<template>
    <div class="user absolute">
      <div class="back">
        <img src="http://diandian.zgkpz.com/images/user/back.png"/>
      </div>
      <div class="main">
      <div class="main_background">
          <div class="wenzi">
              <div>
                  <label>手机号码：</label><span>1801455544</span>
              </div>
              <div>
                  <label>今日闯关数：</label><span>4 </span>
              </div>
              <div>
                  <label>今日积分：</label><span>512</span>
              </div>
              <div>
                  <label>总得分：</label><span>5112</span>
              </div>
              <div>
                  <label>学习总时长：</label><span>5小时16分30秒</span>
              </div>
          </div>

      </div>
      </div>
    </div>
</template>

<script>
const NAME = "User";
export default {
  name: NAME,
  props: {},
  data: function() {
    return {
      userInfo: {}
    };
  },
  watch: {},
  mounted: function() {},
  methods: {
    handleResize() {
      if (document.body.clientWidth <= 768) {
        this.$router.replace({ path: "/" });
      }
    }
  }
};
</script>

<style scoped>
.back {
  padding: 0.5rem;
}
.wenzi {
  position: relative;
  top: 3.7rem;
  font-size: 0.35rem;
  line-height: 1rem;
  padding-left: 0.85rem;
}
.wenzi label {
  color: #ffffff;
}
.main {
  display: flex;
  justify-content: center;
}
.main_background {
  width: 7rem;
  height: 10rem;
  background: url("http://diandian.zgkpz.com/images/m_user/backgroud2.png")
    no-repeat;
  background-size: cover;
}
</style>
